<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="../../favicon.ico">

    <title>视频信息管理系统</title>

    <!-- Bootstrap core CSS -->

    <link href="assets/css/bootstrap.min.css" rel="stylesheet">
    <link href="assets/css/play.css" rel="stylesheet">
    <!-- Custom styles for this template -->
    <link href="assets/css/offcanvas.css" rel="stylesheet">
    <link href="assets/css/style.css" rel="stylesheet">
    <!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
    <!--[if lt IE 9]>
    <script src="assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
    <script src="assets/js/jquery.min.js"></script>
    <!-- <script src="assets/js/bootstrap.min.js"></script> -->
    <script src="assets/js/ie-emulation-modes-warning.js"></script>
</head>
<body>


<!--导航栏-->
<nav class="navbar navbar-fixed-top navbar-inverse">
    <div class="container-fluid">

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav">

                <li><a href="index.php?c=index&m=index">首页</a></li>
                <?php
                foreach ($data['list'] as $list) {
                    echo "<li><a href=index.php?c=index&m=listPage&tid={$list['tid']}>" . $list['typename'] . "</a></li>";
                }
                ?>
            </ul>
        </div><!-- /.navbar-collapse -->
    </div><!-- /.container-fluid -->
</nav>
<!--导航栏end-->


<div class="container"><!--div-1-->
    <div class="row row-offcanvas row-offcanvas-right"><!--div-2-->
        <div class="col-xs-12 col-sm-12"><!--div-3-->

            <!-- 显示视频海报图片，标题和总评分的代码：(右侧表格) -->
            <div class="row box">
                <?php
//                var_dump($data['detail']);
                ?>
                <div class="col-md-4 text-center">
                    <img src="images/<?php echo $data['detail']['pic'];?>" width="200" height="250">
                    <div >
                            <h3 class="brand-name"><?php echo $data['detail']['videoname'];?></h3>
                    </div>
                    <!-- 显示总评分-->
                    <ul class="list-inline row text-center">
                        <li>
                            <?php
                            if(!$data['score']){
                                echo "<h4>影片评分：暂无评分</h4>";
                            }else{
                                echo "<h4>影片评分：".$data['score']."</h4>";
                            }
                            ?>
                        </li>
                    </ul>
                </div>


                <!-- 显示视频专栏那个表格 -->
                <div class="col-md-8 text-center">
                    <table class="table">
                        <tr>
                            <td>专栏</td>
                            <td><?php echo $data['detail']['typename']?></td>
                        </tr>
                        <tr>
                            <td>上传时间</td>
                            <td><?php echo $data['detail']['uploaddate']?></td>
                        </tr>
                        <tr>
                            <td>点击次数</td>
                            <td><?php echo $data['detail']['hittimes']?></td>
                        </tr>
                        <tr>
                            <td>上传人</td>
                            <td>
                                <?php echo $data['detail']['adminname']?>
                            </td>
                        </tr>
                        <tr>
                            <td>下载次数</td>
                            <td> <?php echo $data['detail']['downtimes']?></td>
                        </tr>
                        <tr>
                            <td>有事找站长</td>
                            <td><a href="mailto:zoujiamin14@nou.com.cn">意见箱</a>
                            </td>
                        </tr>
                        <tr>
                            <td>下载地址</td>
                            <td><a href="down.php?vid=44">点击这里下载</a>
                            </td>
                        </tr>
                        <tr>
                            <td>评分</td>
                            <td>
                                <form name="f1" method="get" action="#" onsubmit="check()"
                                      class="form-horizontal">
                                    <input type="hidden"name="vid" value="<?php
                                    echo $data['detail']["vid"];
                                    ?>">
                                    <div class="form-group col-md-5">
                                        <select name="level"  class="form-control col-md-offset-8" required>
                                            <option selected value="">评价影片</option>
                                            <option value="5">力推★★★★★</option>
                                            <option value="4">推荐★★★★</option>
                                            <option value="3">还行★★★</option>
                                            <option value="2">较差★★</option>
                                            <option value="1">很差★</option>
                                        </select>
                                    </div>
                                    <input type="submit" class="btn btn-primary" value=" 评价">
                                </form>
                            </td>
                        </tr>
                    </table>
                </div>


            </div>
            <!-- end显示视频专栏那个表格 -->


            <div class="row box">

                <div class="col-lg-12">
                    <h2 class="intro-text text-center">内容简介</h2>
                    <?php
                    echo $data['detail']['intro'];
                    ?>
                </div>

            </div>


            <div class="row box">
                <div class="col-md-12">
                    <h3 class="intro-text text-center">
                        <?php
                        if(!$data['content']){
                            echo "暂无留言";
                        }else{
                            echo $data['content'];
                        }
                        ?>
                    </h3>
                </div>
            </div>


            <!-- 留言框 -->
            <div class="row box">
                <div class="col-md-12">
                    <textarea class="form-control" cols="80" rows="10" required name="content"></textarea>
                </div>
                <div class="col-lg-12 text-center">
                    <input type="submit" class="btn btn-default" value="发表留言">
                </div>
            </div>
            <!-- end留言框 -->
        </div>
        <!--end 3-->
    </div>
    <!--end 2 -->
</div>
<!--end 1-->
<hr>

<footer>
    <p>&copy; Company 2014</p>
</footer>

<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/bootstrap.min.js"></script>

<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script src="assets/js/ie10-viewport-bug-workaround.js"></script>

<script src="offcanvas.js"></script>
<!-- Script to Activate the Carousel -->
<script>
    $('.carousel').carousel({
        interval: 3000 //changes the speed
    })
</script>
</body>
</html>
